init:
	cp -r ./contract_demo ./contract_$(n)
	sed -i 's/{name}/$(n)/g' ./contract_$(n)/Makefile
	sed -i 's/{name}/$(n)/g' ./contract_$(n)/Cargo.toml

enable_gas:
	./cmc/cmc client gas \
	--sdk-conf-path=./cmc/sdk_config_pk.yml \
	--admin-key-file-paths=./cmc/admin/admin1/admin1.key,./cmc/admin/admin2/admin2.key,./cmc/admin/admin3/admin3.key \
	--gas-enable=true

disable_gas:
	./cmc/cmc client gas \
	--sdk-conf-path=./cmc/sdk_config_pk.yml \
	--admin-key-file-paths=./cmc/admin/admin1/admin1.key,./cmc/admin/admin2/admin2.key,./cmc/admin/admin3/admin3.key \
	--gas-enable=false

set_gas_admin:
	./cmc/cmc gas set-admin $(a) \
	--sdk-conf-path=./cmc/sdk_config_pk.yml \
	--admin-key-file-paths=./cmc/admin/admin1/admin1.key,./cmc/crypto-config/node2/admin/admin2/admin2.key,./cmc/crypto-config/node3/admin/admin3/admin3.key

set_base_gas:
	./cmc/cmc gas set-base-gas \
	--sdk-conf-path=./cmc/sdk_config_pk.yml \
	--amount=100000000 \
	--admin-key-file-paths=./cmc/admin/admin1/admin1.key,./cmc/admin/admin2/admin2.key,./cmc/admin/admin3/admin3.key

get_gas_admin:
	./cmc/cmc gas get-admin --sdk-conf-path=./cmc/sdk_config_pk.yml

getblance:
	./cmc/cmc gas get-balance --sdk-conf-path=./cmc/sdk_config_pk.yml --address=$(a)

recharge:
	./cmc/cmc gas recharge --sdk-conf-path=./cmc/sdk_config_pk.yml --amount=100000000 --address=$(a)

status:
	./cmc/cmc gas account-status --sdk-conf-path=./cmc/sdk_config_pk.yml --address=$(a)